package com.bckj.fastboot.upms.biz.repository;

import com.bckj.fastboot.upms.api.dto.PermsCreateParams;
import com.bckj.fastboot.upms.biz.mapper.SysUserInfoMapper;
import com.bckj.fastboot.upms.api.entity.SysUserInfo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * 用户权限数据表(SysUserInfo)表服务实现类
 *
 * @author wfc
 * @since 2023-09-14 10:14:07
 */
@Repository
public class SysUserInfoRepository 
        extends ServiceImpl<SysUserInfoMapper, SysUserInfo>  {

    public List<SysUserInfo> getUserInfoList(PermsCreateParams params) {
        return lambdaQuery()
                .eq(SysUserInfo::getUserId, params.getId())
                .eq(SysUserInfo::getPermsType, params.getPermsType())
                .list();
    }
}

